Skip to content

[#754] Fix Farcaster wallet not showing in miniapp#758

Merged
realproject7 merged 1 commit intomainfrom
task/754-farcaster-wallet-visible
Apr 2, 2026
Merged

[#754] Fix Farcaster wallet not showing in miniapp#758
realproject7 merged 1 commit intomainfrom
task/754-farcaster-wallet-visible

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Removes the hidden: () => !isLikelyFarcasterContext() property from farcasterWallet in lib/wagmi.ts
  • Removes the now-unused isLikelyFarcasterContext() function
  • The hidden check ran during SSR where window is undefined, causing isLikelyFarcasterContext() to always return false, so the Farcaster wallet was never shown — even inside Warpcast miniapp
  • The Farcaster connector already fails gracefully outside Farcaster, so always showing it is safe

Fixes #754

Test plan

  • Farcaster wallet option appears in Warpcast miniapp
  • Farcaster wallet connects successfully inside Warpcast
  • Farcaster wallet appears in regular browser (connector fails gracefully)
  • Other wallets (MetaMask, Trust, etc.) still work
  • npm run build passes

🤖 Generated with Claude Code

The hidden: () => !isLikelyFarcasterContext() check fails during SSR
because window is undefined, causing the Farcaster wallet option to
never appear in the miniapp. Since the connector gracefully fails
outside Farcaster, it's safe to always show the option.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 2, 2026 0:51am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Pure deletion, correct fix. The SSR issue meant isLikelyFarcasterContext() always returned false (no window on server), permanently hiding the Farcaster wallet. Removing the hidden property and the dead function is the cleanest solution since the connector already fails gracefully outside Farcaster. No concerns.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

This PR removes the SSR-dependent hidden gate from farcasterWallet and deletes the now-unused isLikelyFarcasterContext() helper, which matches issue #754 with a minimal single-file change.

Findings

  • None.

Decision

Approving because the change is scoped to the reported root cause, follows the recommended fix from the issue, and does not introduce extra behavior beyond always showing the Farcaster wallet option.

@realproject7 realproject7 merged commit c9e6534 into main Apr 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Farcaster wallet not showing in miniapp — SSR detection failure

2 participants